﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseData.Domain
{
    /// <summary>
    /// 部门表
    /// </summary>
    public class Depts:BaseEneity
    {
        [Key]
        public int DeptId {  get; set; }

        public int ParentId {  get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string? DeptName {  get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool DeptState { get; set; } = true;
        /// <summary>
        /// 成员数量
        /// </summary>
        public int MemberCount {  get; set; }
        /// <summary>
        /// 部门描述
        /// </summary>
        public string? DeptDescription { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdDate { get; set; }
        /// <summary>
        /// 主管人员
        /// </summary>
        public int UserId { get; set; }

        public bool IsDel { get; set; } = false;
    }
}
